home *** CD-ROM | disk | FTP | other *** search
- on goChangeMeta str
- setMouseTrap()
- resetPuppets()
- go(str)
- end
-
- on goMenu
- global gFlowType, gInPlay, gBlindfold, gOldDelay, gMenu, gStuInfo, gTimer, gOldTimer, gTest, gOldTest
- set gInPlay to 0
- if gMenu then
- set the enabled of menuItem 2 of menu "Special" to 0
- end if
- if gFlowType = #SCRAMBLE then
- set gBlindfold to gOldDelay
- set gTimer to gOldTimer
- set gTest to gOldTest
- end if
- if getaProp(gStuInfo, #name) <> "GUEST" then
- saveStudent()
- goChangeMeta("login")
- else
- goChangeMeta("initMenu")
- cursor(-1)
- end if
- end
-
- on goControls
- global gTest, gTimer, gBlindfold, gOldDelay, gInPlay, gFlowType, gInSetup, gMenu, gTimerTicks, gMode, gPlace, gStuMethod, gOldTimer, gOldTest, gDictNum
- set gDictNum to 0
- set gInSetup to 1
- if gFlowType = #SCRAMBLE then
- set tmp to gBlindfold
- set gBlindfold to gOldDelay
- set gOldDelay to tmp
- set tmp to gOldTimer
- set gOldTimer to gTimer
- set gTimer to tmp
- set tmp to gOldTest
- set gOldTest to gTest
- set gTest to tmp
- end if
- set gInPlay to 0
- if gMenu then
- set the enabled of menuItem 2 of menu "Special" to 0
- end if
- if (gPlace = #play) and (isBrowse() or (gFlowType = #sms) or (gFlowType = #SCRAMBLE) or ((gFlowType = #REGULAR) and gTest)) then
- goChangeMeta("controls2")
- else
- goChangeMeta("controls1")
- end if
- set the text of cast "TimerSecs" to string(gTimerTicks / 60)
- set the text of cast "ModeType" to " "
- set the text of cast "BrowseType" to " "
- if getaProp(gStuMethod, #icons) = #smiley then
- set the castNum of sprite 21 to 390
- else
- set the castNum of sprite 21 to 391
- end if
- if gTest then
- set the castNum of sprite 11 to 238
- end if
- if gTimer then
- set the castNum of sprite 12 to 236
- end if
- if gBlindfold then
- set the castNum of sprite 13 to 234
- end if
- updateStage()
- end
-
- on fromTitle
- global gMenuLast, gFlowType
- set gFlowType to #REGULAR
- set gMenuLast to "menuNONE"
- puppetTransition(23, 0)
- goMenu()
- end
-